package com.demo.mybatis.Service;

import com.demo.mybatis.dao.MbbUserMapper;
import com.demo.mybatis.model.MbbUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserService {

    @Autowired
    private MbbUserMapper mbbUserMapper;

    @Transactional
    public void insert(MbbUser mbbUser) throws Exception {
        mbbUserMapper.insert(mbbUser);
        throw new RuntimeException();

    }

}
